package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class IntegralManageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IntegralManageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andChangeaddressIsNull() {
            addCriterion("changeAddress is null");
            return (Criteria) this;
        }

        public Criteria andChangeaddressIsNotNull() {
            addCriterion("changeAddress is not null");
            return (Criteria) this;
        }

        public Criteria andChangeaddressEqualTo(String value) {
            addCriterion("changeAddress =", value, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressNotEqualTo(String value) {
            addCriterion("changeAddress <>", value, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressGreaterThan(String value) {
            addCriterion("changeAddress >", value, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressGreaterThanOrEqualTo(String value) {
            addCriterion("changeAddress >=", value, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressLessThan(String value) {
            addCriterion("changeAddress <", value, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressLessThanOrEqualTo(String value) {
            addCriterion("changeAddress <=", value, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressLike(String value) {
            addCriterion("changeAddress like", value, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressNotLike(String value) {
            addCriterion("changeAddress not like", value, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressIn(List<String> values) {
            addCriterion("changeAddress in", values, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressNotIn(List<String> values) {
            addCriterion("changeAddress not in", values, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressBetween(String value1, String value2) {
            addCriterion("changeAddress between", value1, value2, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangeaddressNotBetween(String value1, String value2) {
            addCriterion("changeAddress not between", value1, value2, "changeaddress");
            return (Criteria) this;
        }

        public Criteria andChangetimeIsNull() {
            addCriterion("changeTime is null");
            return (Criteria) this;
        }

        public Criteria andChangetimeIsNotNull() {
            addCriterion("changeTime is not null");
            return (Criteria) this;
        }

        public Criteria andChangetimeEqualTo(String value) {
            addCriterion("changeTime =", value, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeNotEqualTo(String value) {
            addCriterion("changeTime <>", value, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeGreaterThan(String value) {
            addCriterion("changeTime >", value, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeGreaterThanOrEqualTo(String value) {
            addCriterion("changeTime >=", value, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeLessThan(String value) {
            addCriterion("changeTime <", value, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeLessThanOrEqualTo(String value) {
            addCriterion("changeTime <=", value, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeLike(String value) {
            addCriterion("changeTime like", value, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeNotLike(String value) {
            addCriterion("changeTime not like", value, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeIn(List<String> values) {
            addCriterion("changeTime in", values, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeNotIn(List<String> values) {
            addCriterion("changeTime not in", values, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeBetween(String value1, String value2) {
            addCriterion("changeTime between", value1, value2, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetimeNotBetween(String value1, String value2) {
            addCriterion("changeTime not between", value1, value2, "changetime");
            return (Criteria) this;
        }

        public Criteria andChangetopnumIsNull() {
            addCriterion("changeTopNum is null");
            return (Criteria) this;
        }

        public Criteria andChangetopnumIsNotNull() {
            addCriterion("changeTopNum is not null");
            return (Criteria) this;
        }

        public Criteria andChangetopnumEqualTo(Integer value) {
            addCriterion("changeTopNum =", value, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumNotEqualTo(Integer value) {
            addCriterion("changeTopNum <>", value, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumGreaterThan(Integer value) {
            addCriterion("changeTopNum >", value, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("changeTopNum >=", value, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumLessThan(Integer value) {
            addCriterion("changeTopNum <", value, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumLessThanOrEqualTo(Integer value) {
            addCriterion("changeTopNum <=", value, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumIn(List<Integer> values) {
            addCriterion("changeTopNum in", values, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumNotIn(List<Integer> values) {
            addCriterion("changeTopNum not in", values, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumBetween(Integer value1, Integer value2) {
            addCriterion("changeTopNum between", value1, value2, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangetopnumNotBetween(Integer value1, Integer value2) {
            addCriterion("changeTopNum not between", value1, value2, "changetopnum");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeIsNull() {
            addCriterion("changePrizeEndTime is null");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeIsNotNull() {
            addCriterion("changePrizeEndTime is not null");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeEqualTo(String value) {
            addCriterion("changePrizeEndTime =", value, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeNotEqualTo(String value) {
            addCriterion("changePrizeEndTime <>", value, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeGreaterThan(String value) {
            addCriterion("changePrizeEndTime >", value, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeGreaterThanOrEqualTo(String value) {
            addCriterion("changePrizeEndTime >=", value, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeLessThan(String value) {
            addCriterion("changePrizeEndTime <", value, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeLessThanOrEqualTo(String value) {
            addCriterion("changePrizeEndTime <=", value, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeLike(String value) {
            addCriterion("changePrizeEndTime like", value, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeNotLike(String value) {
            addCriterion("changePrizeEndTime not like", value, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeIn(List<String> values) {
            addCriterion("changePrizeEndTime in", values, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeNotIn(List<String> values) {
            addCriterion("changePrizeEndTime not in", values, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeBetween(String value1, String value2) {
            addCriterion("changePrizeEndTime between", value1, value2, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andChangeprizeendtimeNotBetween(String value1, String value2) {
            addCriterion("changePrizeEndTime not between", value1, value2, "changeprizeendtime");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumIsNull() {
            addCriterion("firstPrizeNum is null");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumIsNotNull() {
            addCriterion("firstPrizeNum is not null");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumEqualTo(Integer value) {
            addCriterion("firstPrizeNum =", value, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumNotEqualTo(Integer value) {
            addCriterion("firstPrizeNum <>", value, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumGreaterThan(Integer value) {
            addCriterion("firstPrizeNum >", value, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("firstPrizeNum >=", value, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumLessThan(Integer value) {
            addCriterion("firstPrizeNum <", value, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumLessThanOrEqualTo(Integer value) {
            addCriterion("firstPrizeNum <=", value, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumIn(List<Integer> values) {
            addCriterion("firstPrizeNum in", values, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumNotIn(List<Integer> values) {
            addCriterion("firstPrizeNum not in", values, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumBetween(Integer value1, Integer value2) {
            addCriterion("firstPrizeNum between", value1, value2, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andFirstprizenumNotBetween(Integer value1, Integer value2) {
            addCriterion("firstPrizeNum not between", value1, value2, "firstprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumIsNull() {
            addCriterion("secondPrizeNum is null");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumIsNotNull() {
            addCriterion("secondPrizeNum is not null");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumEqualTo(Integer value) {
            addCriterion("secondPrizeNum =", value, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumNotEqualTo(Integer value) {
            addCriterion("secondPrizeNum <>", value, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumGreaterThan(Integer value) {
            addCriterion("secondPrizeNum >", value, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("secondPrizeNum >=", value, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumLessThan(Integer value) {
            addCriterion("secondPrizeNum <", value, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumLessThanOrEqualTo(Integer value) {
            addCriterion("secondPrizeNum <=", value, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumIn(List<Integer> values) {
            addCriterion("secondPrizeNum in", values, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumNotIn(List<Integer> values) {
            addCriterion("secondPrizeNum not in", values, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumBetween(Integer value1, Integer value2) {
            addCriterion("secondPrizeNum between", value1, value2, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andSecondprizenumNotBetween(Integer value1, Integer value2) {
            addCriterion("secondPrizeNum not between", value1, value2, "secondprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumIsNull() {
            addCriterion("thirdPrizeNum is null");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumIsNotNull() {
            addCriterion("thirdPrizeNum is not null");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumEqualTo(Integer value) {
            addCriterion("thirdPrizeNum =", value, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumNotEqualTo(Integer value) {
            addCriterion("thirdPrizeNum <>", value, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumGreaterThan(Integer value) {
            addCriterion("thirdPrizeNum >", value, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("thirdPrizeNum >=", value, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumLessThan(Integer value) {
            addCriterion("thirdPrizeNum <", value, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumLessThanOrEqualTo(Integer value) {
            addCriterion("thirdPrizeNum <=", value, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumIn(List<Integer> values) {
            addCriterion("thirdPrizeNum in", values, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumNotIn(List<Integer> values) {
            addCriterion("thirdPrizeNum not in", values, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumBetween(Integer value1, Integer value2) {
            addCriterion("thirdPrizeNum between", value1, value2, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andThirdprizenumNotBetween(Integer value1, Integer value2) {
            addCriterion("thirdPrizeNum not between", value1, value2, "thirdprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumIsNull() {
            addCriterion("fourthPrizeNum is null");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumIsNotNull() {
            addCriterion("fourthPrizeNum is not null");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumEqualTo(Integer value) {
            addCriterion("fourthPrizeNum =", value, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumNotEqualTo(Integer value) {
            addCriterion("fourthPrizeNum <>", value, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumGreaterThan(Integer value) {
            addCriterion("fourthPrizeNum >", value, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("fourthPrizeNum >=", value, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumLessThan(Integer value) {
            addCriterion("fourthPrizeNum <", value, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumLessThanOrEqualTo(Integer value) {
            addCriterion("fourthPrizeNum <=", value, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumIn(List<Integer> values) {
            addCriterion("fourthPrizeNum in", values, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumNotIn(List<Integer> values) {
            addCriterion("fourthPrizeNum not in", values, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumBetween(Integer value1, Integer value2) {
            addCriterion("fourthPrizeNum between", value1, value2, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFourthprizenumNotBetween(Integer value1, Integer value2) {
            addCriterion("fourthPrizeNum not between", value1, value2, "fourthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumIsNull() {
            addCriterion("fifthPrizeNum is null");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumIsNotNull() {
            addCriterion("fifthPrizeNum is not null");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumEqualTo(Integer value) {
            addCriterion("fifthPrizeNum =", value, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumNotEqualTo(Integer value) {
            addCriterion("fifthPrizeNum <>", value, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumGreaterThan(Integer value) {
            addCriterion("fifthPrizeNum >", value, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("fifthPrizeNum >=", value, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumLessThan(Integer value) {
            addCriterion("fifthPrizeNum <", value, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumLessThanOrEqualTo(Integer value) {
            addCriterion("fifthPrizeNum <=", value, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumIn(List<Integer> values) {
            addCriterion("fifthPrizeNum in", values, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumNotIn(List<Integer> values) {
            addCriterion("fifthPrizeNum not in", values, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumBetween(Integer value1, Integer value2) {
            addCriterion("fifthPrizeNum between", value1, value2, "fifthprizenum");
            return (Criteria) this;
        }

        public Criteria andFifthprizenumNotBetween(Integer value1, Integer value2) {
            addCriterion("fifthPrizeNum not between", value1, value2, "fifthprizenum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}